<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>利用类画彩虹</title>
    <style>
        .red {
            width: 960px;
            height: 25px;
            background-color: red;
        }

        .orange {
            width: 960px;
            height: 25px;
            background-color: orange;
        }

        .yellow {
            width: 960px;
            height: 25px;
            background-color: yellow;
        }

        .green {
            width: 960px;
            height: 25px;
            background-color: green;
        }

        .indigo {
            width: 960px;
            height: 25px;
            background-color: rgb(0, 126, 130);
        }

        .blue {
            width: 960px;
            height: 25px;
            background-color: blue;
        }

        .purple {
            width: 960px;
            height: 25px;
            background-color: purple;
        }
    </style>
</head>

<body>
    <div class="red"></div>
    <div class="orange"></div>
    <div class="yellow"></div>
    <div class="green"></div>
    <div class="indigo"></div>
    <div class="blue"></div>
    <div class="purple"></div>
</body>

</html>